

const express = require('express');

const allrouter = require('C:\\www\\2302\\day33\\路由表\\routers');

// 创建 服务 
const server = express();
  
server.use('/static',express.static('C:\\www\\2302\\day33\\路由表\\fuxiang'))

console.log(allrouter);
server.use('/api',allrouter)

// 启动服务

server.listen(8080,()=>{
    console.log('分拆路由表启动成功端口号 8080');
})